package com.aaa.depression.controller;


import com.aaa.depression.service.DepressionReportStatisticsService;
import com.aaa.pojo.ResultBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;
import java.util.Map;

@Controller
@RequestMapping("/accountsds")
@ResponseBody
public class DepressionReportStatisticsController {
    @Autowired
    private DepressionReportStatisticsService depressionReportStatisticsService;
    @PostMapping("/findAllsds")
    public ResultBean findAllfpa() {
        Map<String,Integer> sds = depressionReportStatisticsService.findAllsds();
        ResultBean resultBean = new ResultBean();
        resultBean.setData(sds);
        return  resultBean;
    }
}
